<?php  
/**
 * CurlScraper
 * @author mj2pk
 * @copyright 2011
 */
class CurlScraper
{
	/**
	 * CurlScraper::DoScrap()
	 * 
	 * @param $screen data källa
	 * @return skrapad data
	 */
	public static function DoScrapScreen($screen)
	{
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, $screen);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($ch, CURLOPT_HEADER, 0);

    	$result = curl_exec($ch);
 		curl_close($ch);
 		
 		return $result;
	}
}